count subarrays of length three with a condition leetcode